package cevent.source.cloudcenter.server.excel;/**
 * Created by Cevent on 2021/7/14.
 */

import com.alibaba.excel.annotation.ExcelProperty;

/**
 * @author cevent
 * @description alibaba easy excel
 * @date 2021/7/14 15:56
 */
public class EasyExcelTestDomain {
    //设置excel表头
    @ExcelProperty(index=0,value="用户编号")
    private int id;
    @ExcelProperty(index=1,value="用户名称")
    private String username;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("EasyExcelTestDomain{");
        sb.append("id=").append(id);
        sb.append(", username='").append(username).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
